package com.cj.pojo.dto;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;

public class RoleUpdateDTO {
    @NotNull(message = "用户ID不能为空")
    private Long id;
    
    @NotNull(message = "角色不能为空")
    @Pattern(regexp = "^(admin|editor|user)$", message = "角色必须是admin、editor或user")
    private String role;

    // Getters and Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
}
